package com.batch.quartz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 参考：
 * http://blog.wjup.top/2019/09/30/%E4%B8%80%E5%B0%8F%E6%97%B6%E5%BF%AB%E9%80%9F%E6%92%B8%E5%87%BA%E7%9F%AD%E7%BD%91%E5%9D%80%E7%94%9F%E6%88%90%E9%A1%B9%E7%9B%AE/
 *
 * spring 依赖注入选项：
 * spring 原理
 * https://segmentfault.com/a/1190000020305930
 * springboot 原理
 * https://segmentfault.com/a/1190000020645683
 *
 * 参考这个再修改下：
 * https://blog.csdn.net/mlsama/article/details/83623895
 */
@SpringBootApplication
@EnableBatchProcessing(modular = true)//启动批量跑任务 //@EnableBatchProcessing   //加载所有的job,与quarter整合调度的时候不能有这个
@EnableScheduling//启动spring的定时任务
@MapperScan(basePackages = "com.batch.quartz.mapper")
public class BatchQuartzApplication {

	public static void main(String[] args) {
		SpringApplication.run(BatchQuartzApplication.class, args);
	}

}
